import axios from 'axios'


const BASE_URL = 'http://127.0.0.1:4523/m1/1709703-0-default'
const service = axios.create({
  baseURL: BASE_URL, // 接口前缀
  timeout: 5000 // 请求超时时间
})

// 设置拦截器
service.interceptors.request.use(
  config => {
    
    return config
  },
  error => {
    return Promise.reject(error)
  }
)

// response interceptor
service.interceptors.response.use(
  response => {
    const res = response
    return res
  }
)

export default service;